/**
 * @author: sce
 * @description: 商品类型表
 */
import * as mongoose from 'mongoose';

const Schema = mongoose.Schema;

const CommodityTypeSchem = new Schema({
    // 种类名称
    type_name: {
        type: String,
        required: true
    },
    // 状态
    status: {
        type: Number
    },
    // 备注
    memo: {
        type: String
    },
    // 创建日期
    create_at: { type: Date, default: Date.now },
    // 更新日期
    update_at: { type: Date, default: Date.now }
});

mongoose.model('CommodityType', CommodityTypeSchem);